package com.zx.system.block.dao;

import com.zx.system.block.model.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysUserRoleMapper {
    int deleteByPrimaryKey(@Param("userId") String userId, @Param("roleId") String roleId);

    int insert(SysUserRole row);

    int insertSelective(SysUserRole row);

    List<SysUserRole> selectUserRoleByRoleId(@Param("roleId") String roleId);

    List<SysUserRole> selectUserRoleByUserId(@Param("userId") String userId);

    void batchInsert(@Param("list") List<SysUserRole> list);

    void batchDeleteByUserAndRoleIds(@Param("userId") String userId, @Param("list") List<String> list);

    void deleteByUserId(@Param("userId") String userId);
}